/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package zsystem;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author Rabid
 */
public class DateFormat {
    
    public static SimpleDateFormat dateFormat(){
        return new SimpleDateFormat("yyyy-MM-dd");
    }
    
    public static String dateString(Date date){
        String stringDate = "";
        stringDate = dateFormat().format(date);
        return stringDate;
    }
}
